from datetime import datetime
from typing import Optional

from pydantic import BaseModel

from app.schemas.base_model import OrmBaseModel


class TradeCalendarBase(OrmBaseModel):
    id: Optional[int]
    exchange: Optional[str]
    calDate: Optional[datetime]
    pretradeDate:Optional[datetime]
    state:Optional[str]
    marketType:Optional[str]
    createdDate: Optional[datetime]
    updatedDate: Optional[datetime]


class TradeCalendarQuery(TradeCalendarBase):
    pass